package com.dao;

import com.entity.Blog;

import java.util.List;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2022/6/16 9:13
 **/
public interface BlogDao {

	//查询所有
	public List<Blog> findAll();
	//根据Id查询
	public Blog findById(Integer id);
	//新增
	public int add(Blog blog);
	//修改
	public int update(Blog blog);
	//删除
	public int deleteById(Integer id);

	List<Blog> findByParam(Integer uid, Integer state, String content);
}
